package com.mxf.code.entity;

import com.mxf.code.enums.Gender;
import org.springframework.web.bind.annotation.ModelAttribute;

/**
 * @author mxf
 * @version 1.0
 * @description: Person
 * @date 2023/5/25
 */

public class Person {
    private Long id;
    private String name;
    private Gender gender;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Gender getGender() {
        return gender;
    }

    @ModelAttribute("gender")
    public void setGender(Gender gender) {
        this.gender = gender;
    }
}
